#ifndef _APPLICATION_H
#define _APPLICATION_H
#include <appConfig.h>
#include <SoftTimerTask.h>
#include "systick_device.h"
#include <taskManager.h>

typedef struct{
    uint8_t red;
    uint8_t green;
    uint8_t blue;
    uint8_t level;
}RGB_t;

typedef struct{
    uint16_t red;
    uint16_t green;
    uint16_t blue;
}PWMT_t;

#define TABLE_SIZE_Flow_1 (12)      //多彩1
#define TABLE_SIZE_Flow_2 (12)      //多彩2
#define TABLE_SIZE_SinClr (8)       //单色
#define TABLE_SIZE_Brth (16)        //呼吸灯
#define TABLE_SIZE_TransClr (7)     //无极变色      
#define TABLE_SIZE_Alarm (2)        //报警
#define TABLE_SIZE_Yellow (1)       //黄色照明

extern uint8_t tableIndex;
extern RGB_t * rgbTablePt;
extern uint16_t FadingTime;
extern uint8_t TableMaxSize;
extern SoftTimer_t App1Timer;
extern uint8_t ModeSelection;

extern RGB_t rgbTable_Flow_2_1[];       //多彩2颜色组1
extern RGB_t rgbTable_Flow_1_1[];       //多彩1颜色组1
extern RGB_t rgbTable_SingleColor[];
extern RGB_t rgbTable_Breath[];
extern RGB_t rgbTable_TransClr[];
extern RGB_t rgbTable_Alarm[];
extern RGB_t rgbTable_Yellow[];

#endif
